[#import "/framework/JGP.htm"  as JGP]
<!--
项目   parent
作者   LOUFEI [Gavin]
时间   2018/4/5
-->
[@JGP.head "Title"/]
[@JGP.body]
    <jgp-div _col="['*','350','*']" _cunit="px" _row="['*','300','*']" _runit="px">
        <jgp-div slot="2-2" _row="['120','*']" _runit="px">
            <jgp-form slot="1-1" _id="loginForm" _action="/security/login" _method="post" _cols="12">
                <jgp-text _label="用户名" _col="12" _name="admin_name"></jgp-text>
                <jgp-text _label="密码" _col="12" _name="admin_pwd"></jgp-text>
            </jgp-form>
            <div slot="2-1">
                <jgp-btn _fn="login">登录</jgp-btn>
            </div>
        </jgp-div>
    </jgp-div>

[/@JGP.body]

[@JGP.foot]
<script>
    function login() {
        JGP.form('loginForm').submit();
    }
</script>
[/@JGP.foot]